<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <div :style="{fontSize: fontSize+'px'}">{{msg}}</div>
    <meimei @entext="handle($event,'你看了吧')"></meimei>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    let meimei = {
      data() {
        return {}
      },
      "methods": {},
      "template": `
        <div>
          <button @click="$emit('entext', 10)">这是一个很好的事情了</button>
        </div>
      `
    };

    const vm = new Vue({
      "el": "#app",
      "data": {
        "msg": "子组件向父组件传值了",
        "fontSize": 16
      },
      mounted() {},
      updated() {},
      "methods": {
        handle(val) {
          this.fontSize += val;
        }
      },
      "directives": {},
      "computed": {},
      "watch": {},
      "filters": {},
      "components": {
        meimei
      },
    });
  </script>
</body>

</html>